package com.tju.resource.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tju.resource.model.SysRole;
import com.tju.resource.model.TbCommand;
import com.tju.resource.model.TbPpConsumables;
import com.tju.resource.model.TbProdPlan;
import com.tju.resource.tool.tool.ClientParameters;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbProdPlanMapper extends BaseMapper<TbProdPlan> {

//    IPage<TbProdPlan> getAll(Page<TbProdPlan> page, @Param("pa") ClientParameters parameter);
    IPage<TbProdPlan> getAll(Page<TbProdPlan> page, @Param("pa") ClientParameters parameter);

    TbProdPlan getTbProdPlanById(@Param("Id") Long Id);
    List<TbProdPlan> TbProdPlanById(@Param("Id") Long Id);
    TbProdPlan prodPlanById(Long id);
    List<TbPpConsumables> getTbPpConsumablesList(Long id);
}